package com.example.lynandroid.views

import android.view.inputmethod.InputConnection
import android.view.inputmethod.InputConnectionWrapper
import com.example.lynandroid.log

class DreamInputConnection(target: InputConnection?, mutable: Boolean) :
    InputConnectionWrapper(target, mutable) {


    override fun setImeConsumesInput(imeConsumesInput: Boolean): Boolean {
        log("setImeConsumesInput")
        return super.setImeConsumesInput(imeConsumesInput)
    }

    override fun beginBatchEdit(): Boolean {
        log("beginBatchEdit")
        return super.beginBatchEdit()
    }

    override fun closeConnection() {
        log("closeConnection")
        super.closeConnection()
    }

    override fun performEditorAction(editorAction: Int): Boolean {
        log("performEditorAction")
        return super.performEditorAction(editorAction)
    }
}